<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page session="false"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>${pageTitle}</title>

<script src="../resources/js/jquery-1.10.1.min.js"></script>
<link rel="stylesheet" href="../resources/css/bootstrap.min.css"
	type="text/css" />
<script src="../resources/js/bootstrap.min.js"></script>



<style>
.table td {
	vertical-align: middle;
}

.table tbody tr>td.success {
	background-color: #dff0d8 !important;
}

.table tbody tr>td.error {
	background-color: #f2dede !important;
}

.table tbody tr>td.warning {
	background-color: #fcf8e3 !important;
}

.table tbody tr>td.info {
	background-color: #d9edf7 !important;
}

.table-hover tbody tr:hover>td.success {
	background-color: #d0e9c6 !important;
}

.table-hover tbody tr:hover>td.error {
	background-color: #ebcccc !important;
}

.table-hover tbody tr:hover>td.warning {
	background-color: #faf2cc !important;
}

.table-hover tbody tr:hover>td.info {
	background-color: #c4e3f3 !important;
}

#custom {
	margin: 0px 0px 0px;
}
</style>
</head>


<body style="margin: auto;">

	<div class="container">


		<h2>
			<a href="/ptma">${initParam.ptma}</a>
		</h2>
		<h3>${initParam.slogon }</h3>



		<div class="navbar">
			<div class="navbar-inner">
				<div class="container">
					<ul class="nav">
						<li><a href="/ptma">Home</a></li>
						<li class="active"><a href="applications.html">Applications</a></li>
						<li><a href="create_application.html">Create Application</a></li>
					</ul>
					<a class="btn btn-success" href="../j_spring_security_logout"><span
						class="icon-off icon-white"></span> Logout</a>

					<div class="btn-group  pull-right">
						<button type="button" class="btn btn-success dropdown-toggle"
							data-toggle="dropdown">
							<span class="icon-user icon-white"></span> Yahya Arshad <span
								class="caret"></span>
						</button>
						<ul class="dropdown-menu" role="menu">
							<li><a href="#"><span class="icon-edit"></span>
									Create/Edit Group</a></li>
							<li><a href="#"><span class="icon-user"></span>
									Add/Remove Downloader</a></li>
							<li><a href="#"><span class="icon-cog"></span> Settings</a></li>
							<li class="divider"></li>
							<li><a href="#"> Separated link</a></li>
						</ul>
					</div>

				</div>

			</div>

		</div>
		<!--  navbar -->



		<table class="table table-striped table-condensed  ">
			<c:forEach var="application" items='${applications}'
				varStatus="count">
				<tr style="vertical-align: middle;">
					<td><img class="img-rounded" alt=""
						src="../resources/icon.png" width="70px" height="70px"></td>


					<td align="center"><a href="#" type="submit"
						name="${count.count }"> <span class="icon-certificate"></span>
							${ application.nameSpace}
					</a></td>

					<td>
						<a href="assign_application.html" name="${count.count }">Assign
							Downloader / Group</a>
					</td>


					<td><a href="send_notification.html" class="btn btn-link"
						type="submit" name="${count.count }"> <span
							class="icon-envelope"></span> Send Notification
					</a></td>
					<td><form id="custom" action="#" method="POST">
							<button class="btn   btn-danger" type="submit"
								name="${count.count }">
								<span class="icon-trash icon-white"></span> Delete
							</button>
						</form></td>
				</tr>

			</c:forEach>

		</table>


	</div>
	<!-- container -->
	<hr>
	<div class="footer" align="center">
		<p>&copy; 2013 - 2014 Project Test Monkey Applications</p>
		<p>
			<a href="../contact.html">Contact Us</a>
		</p>
	</div>
</body>

</html>

